  // 汉字数据 - 包含不同难度的汉字
        const charactersData = {
            easy: [
                {
                    character: "木",
                    meaning: "树木",
                    components: ["木"],
                    gridSize: 1
                },
                {
                    character: "林",
                    meaning: "树林",
                    components: ["木", "木"],
                    gridSize: 2
                },
                {
                    character: "森",
                    meaning: "森林",
                    components: ["木", "木", "木"],
                    gridSize: 3
                },
                {
                    character: "日",
                    meaning: "太阳",
                    components: ["日"],
                    gridSize: 1
                },
                {
                    character: "明",
                    meaning: "明亮",
                    components: ["日", "月"],
                    gridSize: 2
                }
            ],
            
            medium: [
                {
                    character: "休",
                    meaning: "休息",
                    components: ["亻", "木"],
                    gridSize: 2
                },
                {
                    character: "好",
                    meaning: "美好",
                    components: ["女", "子"],
                    gridSize: 2
                },
                {
                    character: "江",
                    meaning: "江河",
                    components: ["氵", "工"],
                    gridSize: 2
                },
                {
                    character: "字",
                    meaning: "文字",
                    components: ["宀", "子"],
                    gridSize: 2
                },
                {
                    character: "吃",
                    meaning: "吃饭",
                    components: ["口", "乞"],
                    gridSize: 2
                },
                {
                    character: "森",
                    meaning: "森林",
                    components: ["木", "木", "木"],
                    gridSize: 3
                },
                {
                    character: "晶",
                    meaning: "水晶",
                    components: ["日", "日", "日"],
                    gridSize: 3
                }
            ],
            
            hard: [
                {
                    character: "谢",
                    meaning: "感谢",
                    components: ["讠", "身", "寸"],
                    gridSize: 3
                },
                {
                    character: "赢",
                    meaning: "胜利",
                    components: ["亡", "口", "月", "贝", "凡"],
                    gridSize: 3
                },
                {
                    character: "疆",
                    meaning: "边疆",
                    components: ["弓", "土", "畺"],
                    gridSize: 3
                },
                {
                    character: "鑫",
                    meaning: "财富兴盛",
                    components: ["金", "金", "金"],
                    gridSize: 3
                },
                {
                    character: "焱",
                    meaning: "火焰",
                    components: ["火", "火", "火"],
                    gridSize: 3
                },
                {
                    character: "矗",
                    meaning: "直立",
                    components: ["直", "直", "直"],
                    gridSize: 3
                }
            ]
        };

        // 仓颉传说文本
        const cangjieLegends = [
            "仓颉是黄帝的史官，传说他有四只眼睛，能观察天地万物之象。",
            "仓颉观察鸟兽足迹，受到启发，创造了最早的象形文字。",
            "传说仓颉造字时，天降粟米，鬼夜哭，文字的出现惊天地、泣鬼神。",
            "仓颉造字后，人们从此可以记录历史、传递知识，中华文明得以传承。",
            "汉字从仓颉的象形文字，逐渐演变为今天的形态，是世界最古老的文字之一。",
            "仓颉被尊为'字圣'，在河南南乐县有仓颉陵，每年都有祭祀活动。"
        ];